import React, { Suspense } from "react"
import { BrowserRouter } from "react-router-dom"
import ReactDOM from "react-dom"

import App from "./App"

ReactDOM.render(
  <BrowserRouter>
    <Suspense fallback={<h1>正在加载...</h1>}>
      <App />
    </Suspense>
  </BrowserRouter>,
  document.getElementById("root")
)
